//package com.xcc.core.config;
//
//import java.io.IOException;
//
//import javax.servlet.Filter;
//import javax.servlet.FilterChain;
//import javax.servlet.ServletException;
//import javax.servlet.ServletRequest;
//import javax.servlet.ServletResponse;
//import javax.servlet.annotation.WebFilter;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//import org.springframework.context.annotation.Configuration;
//
//
//@Configuration
//@WebFilter(filterName = "CorsFilter ")
//public class SessionFilterConfig  implements Filter {
//
//	@Override
//	public void doFilter(ServletRequest request, ServletResponse response,
//			FilterChain chain)
//			throws IOException, ServletException {
//		System.out.println(	((HttpServletRequest)request).getSession().getId());
//        HttpServletResponse res = (HttpServletResponse) response;
//        res.setHeader("Access-Control-Allow-Origin","http://192.168.1.105:8081");  
//        res.setHeader("Access-Control-Allow-Credentials", "true");
//        res.setHeader("Access-Control-Allow-Methods", "POST, GET, PATCH, DELETE, PUT");
//        
//    //    res.setHeader("Access-Control-Allow-Methods", "POST, GET, PATCH, DELETE, PUT");
//        res.setHeader("Access-Control-Max-Age", "3600");
//        res.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
//		chain.doFilter(request, response);
//	}
//		
//	
//	
//	
//	
//	
//}
